/**************************
* @Summary
* @Author 20009200303 赵传博
* @Date 6/16/2022
* @Note
*****************************/

#ifndef REVIEW_EXTEND_H
#define REVIEW_EXTEND_H

class Father{
private:
    int sth_private;
protected:
    int sth_protected;
public:
    int sth_public;
    virtual void f();
};


class child1 : public Father{
public:
    void haha(){
        sth_public = 1;
        sth_protected = 2;
        // sth_private = 3;      'sth_private' is a private member of 'Father'
    }
    int f(){

    }
};


class child2: private Father{
public:
    void haha(){
        sth_public = 1;
        sth_protected = 2;
        // sth_private = 3;
    }
};


class child3 : protected Father{
public:
    void haha(){
        sth_public = 1;
        sth_protected = 2;
        // sth_private = 3;
    }
};

class child11 : public child1{
public:
    void hehe(){
        sth_public = 1;
        sth_protected = 2;
        // sth_private = 3;
        haha();
    }
};

class child21 : public child2{
public:
    void hehe(){
        // sth_public = 1;      'sth_public' is a private member of 'Father'
        // sth_protected = 2;   'sth_protected' is a private member of 'Father'
        // sth_private = 3;
        haha();
    }
};

class child31 : public child3{
public:
    void hehe(){
        sth_public = 1;
        sth_protected = 2;
        // sth_private = 3;
        haha();
    }
};








#endif //REVIEW_EXTEND_H
